package com.eastjet.maintenance.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 巡检明细
 * @TableName inspection_details
 */
@TableName(value ="inspection_details")
@Data
public class InspectionDetails implements Serializable {
    /**
     * 巡检明细主键id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 设备编码
     */
    private String code;

    /**
     * 计划巡检/计划点检编码
     */
    private String codeType;

    /**
     * 是否拍照(1.是2.否)
     */
    private Integer whether;

    /**
     * 扫码登记(1.是2.否)
     */
    private Integer checkIn;

    /**
     * 状态
     */
    private Integer state;

    /**
     * 检查项目
     */
    private String project;

    private String isJudge;

    @TableField(exist = false)
    private DeviceInspectiontask deviceInspectiontask;

    @TableField(exist = false)
    private Equipment equipment;

    @TableField(exist = false)
    private DeviceInspectionproject deviceInspectionproject;

    @TableField(exist = false)
    private DevicePmts pmts;

    @TableField(exist = false)
    private int count;

    @Override
    public String toString() {
        return "InspectionDetails{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", codeType='" + codeType + '\'' +
                ", whether=" + whether +
                ", checkIn=" + checkIn +
                ", state=" + state +
                ", project='" + project + '\'' +
                ", isJudge='" + isJudge + '\'' +
                ", deviceInspectiontask=" + deviceInspectiontask +
                ", equipment=" + equipment +
                ", deviceInspectionproject=" + deviceInspectionproject +
                ", pmts=" + pmts +
                ", count=" + count +
                '}';
    }
}